package com.autumn.platform.dao.expression;

import org.apache.ibatis.session.Configuration;

public interface IExpressionHandler {

    /**
     * 是否可解析该表达式
     * 
     * @param expression
     * @param configuration
     * @return
     */
    public boolean supports(String expression, Configuration configuration);

    /**
     * 对表达式求值
     * 
     * @param expression
     * @param parameter
     * @param configuration
     * @return
     */
    public Object eval(String expression, Object parameter, Configuration configuration);
}
